/* Layout */
import Layout from '@neu/biz-core/layout'

export default [
  {
    path: '/cmdb',
    name: 'cmdb',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '配置管理',
      icon: 'cmdb2',
      module: 'setting',
      code: 'menu_cmdb'
    },
    component: Layout,
    children: [
      {
        path: 'schemas',
        name: 'cmdb_schemas',
        meta: {
          title: '模型管理及属性池',
          icon: 'right-arrow',
          module: 'setting',
          code: 'cmdb_menu_schemas'
        },
        component: () => import('@neu/cmdb-ui/views/schemas')
      },
      {
        path: 'relainsts',
        name: 'cmdb_relainsts',
        meta: {
          title: '配置关系',
          icon: 'right-arrow',
          module: 'setting',
          code: 'cmdb_menu_relainsts'
        },
        component: () => import('@neu/cmdb-ui/views/relainsts')
      },
      {
        path: 'categories',
        name: 'cmdb_categories',
        meta: {
          title: '模型分类',
          icon: 'right-arrow',
          module: 'setting',
          code: 'menu_cmdb_categories'
        },
        component: () => import('@neu/cmdb-ui/views/categories')
      },
      {
        path: 'schemas/:id',
        name: 'cmdb_schemas_edit',
        hidden: true,
        meta: {
          title: '模型详情',
          icon: 'right-arrow',
          module: 'setting',
          activeMenu: '/cmdb/schemas'
        },
        component: () => import('@neu/cmdb-ui/views/schemas/components/edit')
      },
      {
        path: 'instances',
        name: 'cmdb_instances',
        meta: {
          title: '配置维护',
          icon: 'right-arrow',
          module: 'setting',
          code: 'cmdb_menu_instances'
        },
        component: () => import('@neu/cmdb-ui/views/instances')
      },
      {
        path: 'instances/:id',
        name: 'cmdb_instances_detail',
        hidden: true,
        meta: {
          title: '实例详情',
          icon: 'right-arrow',
          module: 'setting',
          activeMenu: '/cmdb/instances'
        },
        component: () => import('@neu/cmdb-ui/views/instances/components/edit')
      }
    ]
  },
  {
    path: '/base',
    name: 'hn_base',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '基础设置',
      icon: 'settings',
      module: 'setting',
      code: 'menu_base'
    },
    component: Layout,
    children: [
      {
        path: 'dictionaryType',
        name: 'hn_dictionaryType',
        meta: {
          title: '字典类型',
          icon: 'right-arrow',
          module: 'setting',
          code: 'menu_base_dictionaryType'
        },
        component: () => import('@neu/dcam-ui/views/dictionaryType')
      },
      {
        path: 'dictionary',
        name: 'hn_dictionary',
        meta: {
          title: '字典管理',
          icon: 'right-arrow',
          module: 'setting',
          code: 'menu_base_dictionary'
        },
        component: () => import('@neu/dcam-ui/views/dictionary')
      },
      {
        path: 'institutions',
        name: 'hn_institutions',
        meta: {
          title: '运维厅局设置',
          icon: 'right-arrow',
          module: 'setting',
          code: 'menu_base_institutions'
        },
        component: () => import('@neu/dcom-ui/views/institutions')
      },
      {
        path: 'operationGroup',
        name: 'hn_operationGroup',
        meta: {
          title: '运维小组设置',
          icon: 'right-arrow',
          module: 'setting',
          code: 'menu_base_operationGroup'
        },
        component: () => import('@neu/dcom-ui/views/operationGroup')
      },
      {
        path: 'holiday',
        name: 'hn_holiday',
        meta: {
          title: '节假日设置',
          icon: 'right-arrow',
          code: 'menu_base_holiday'
        },
        component: () => import('@neu/dcom-ui/views/holiday/index')
      },
      {
        path: 'knowledgeBaseConfiguration',
        name: 'hn_knowledgeBaseConfiguration',
        meta: {
          title: '知识类型设置',
          icon: 'right-arrow',
          code: 'menu_base_knowledgeBaseConfiguration'
        },
        component: () => import('@neu/dcom-ui/views/knowledge/knowledgeBaseConfiguration/index')
      },
      {
        path: 'businessProcessType',
        name: 'dcom_businessProcessType',
        hidden: true,
        meta: {
          title: '流程模板',
          icon: 'right-arrow',
          module: 'setting',
          code: 'menu_setting_businessProcessType'
        },
        component: () => import('@neu/dcom-ui/views/process')
      },
      {
        path: 'bpmn',
        name: 'dcom_workflowEdit',
        hidden: true,
        meta: {
          title: 'BPMN',
          icon: 'right-arrow',
          module: 'setting',
          code: 'dcom_menu_setting_bpmn'
        },
        component: () => import('@neu/dcom-ui/views/workOrder/bpmn/edit')
      },
      {
        path: 'jobs',
        name: 'dcom_jobs',
        hidden: true,
        meta: {
          title: '定时任务',
          icon: 'right-arrow',
          module: 'setting',
          code: 'menu_base_job'
        },
        component: () => import('@neu/dcom-ui/views/jobs')
      }
    ]
  }
]
